package 慕课网.homework2;

public class Electromobile extends Car{
    private String eleBrand;
    public Electromobile(){

    }
    public Electromobile(String brand,String color,int whell,int set,String eleBrand){
        super(brand,color,whell,set);
        this.setEleBrand(eleBrand);
    }
    public Electromobile(String eleBrand){
        this.setEleBrand(eleBrand);
    }
    public String getEleBrand() {
        return eleBrand;
    }
    public void setEleBrand(String eleBrand) {
        this.eleBrand = eleBrand;
    }
    public String describle(){
        String str="电动车类信息测试："
                +"这是一辆使用"+this.getEleBrand()
                +"的电动车";
        return str;
    }
}
